package com.example.adapter3;

/**
 * @version 1.0.0
 * @className: TestAdapter
 * @description:
 * @author: rosszhang
 * @date: 2022/5/13 16:36
 */
public class TestAdapter {
    public static void main(String[] args) {
        //类适配器
        Ps2 ps2=new ClassAdapter();
        ps2.isPs2();

        //对象适配器
        Ps2 p=new ObjectAdapter(new UsberObject());
        p.isPs2();
    }
}
